/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MortgageCore;

/**
 *
 * @author karakots
 */
public class MortgageTerms {
    // this class is used for bids and offers in the mortgage market
    // so needs to exist separate from an actual mortagge
    private int     lengthInYears;     // years to pay off
    private double  monthlyInterestRate;
    private double  points;
    private boolean isFixedRate;
    private double  minDownPayment;

    public MortgageTerms() {
        lengthInYears = 0;
        monthlyInterestRate = 0;
        points = 0;
        isFixedRate = true;
        minDownPayment = 0;
    }

    // accessors
    public void setMinDownPayment(double min) {
        minDownPayment = min;
    }
    public double getMinDownPayment() {
        return minDownPayment;
    }
    public int getLengthInYears() {
        return lengthInYears;
    }
    public double getMonthlyInterestRate() {
        return monthlyInterestRate;
    }
    public double getPoints() {
        return points;
    }
    public boolean getIsFixRate() {
        return isFixedRate;
    }
    public void setLengthInYears(int length) {
        lengthInYears = length;
    }
    public void setMonthlyInterestRate(double ir) {
        monthlyInterestRate = ir;
    }
    public void setPoints(double p) {
        points = p;
    }
    public void setIsFixRate(boolean ifr) {
        isFixedRate = ifr;
    }
    
}
